package com.code.juc.lock;

/**
 * @author: liyufei
 * @date: 2021-08-03 21:24
 */
public class SyncDemo {

    public synchronized void demo() {  // 对象锁

    }

    public void demo2() {
        // TODO...
        synchronized (SyncDemo.class) {
            
        }
        // TODO...
    }

    public synchronized static void demo3() {

    }

    public static void main(String[] args) {

    }
}
